package com.starhub.base.auth.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.starhub.base.auth.entity.AuthInfo;
import com.starhub.base.auth.dao.AuthInfoMapper;
import com.starhub.base.auth.service.AuthInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuthInfoServiceImpl implements AuthInfoService {

    @Autowired
    private AuthInfoMapper authInfoMapper;

    @Override
    public AuthInfo getAuthInfo() {
        // 这里只取第一条记录，后续根据业务调整
        return authInfoMapper.selectOne(new QueryWrapper<>());
    }
}